package day5;

import org.junit.Test;

public class Demo {

	@Test
	public void test1() {
		Student student = new Student();
		student.id = 1;
		student.study();
		
//		Student student = new Person(); 
//		Person person = new Student();
	}
	
	void test3() {
		
	}
	
	@Test 
	public void test2() {
		
		Student student = new Student(1,"王五", 21, "java1912");
		student.study();
		System.out.println(student.toString());
	}
}
